package com.lwy.qiuchao.field.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwy.common.utils.PageUtils;
import com.lwy.common.utils.Query;

import com.lwy.qiuchao.field.dao.FieldNoticeDao;
import com.lwy.qiuchao.field.entity.FieldNoticeEntity;
import com.lwy.qiuchao.field.service.FieldNoticeService;


@Service("fieldNoticeService")
public class FieldNoticeServiceImpl extends ServiceImpl<FieldNoticeDao, FieldNoticeEntity> implements FieldNoticeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FieldNoticeEntity> page = this.page(
                new Query<FieldNoticeEntity>().getPage(params),
                new QueryWrapper<FieldNoticeEntity>()
        );

        return new PageUtils(page);
    }

}